home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invisible Universe
/
Invisible Universe (1995)(Voyager)[Mac-PC].iso
/
mac
/
UNIVERSE
/
SHARED.DIR
/
01048_Script_1048
< prev
next >
Wrap
Text File
|
1995-11-21
|
3KB
|
174 lines
on fixEmpties startNum
if voidP(startNum) then set startNum = 1
set BigList = value(field "o movies")
repeat with i = startNum to count(BigList)
saveMovie
if the freeBytes < 1500000 then
unloadCast 1,1000
if the machineType <> 256 then maxmem()
end if
set mov = getAt(BigList, i)
--put ">>> movie #" & i & ": " & mov
go to movie mov
setEmptyScripts
end repeat
saveMovie
put "done."
end fixEmpties
on setEmptyScripts
set sta = the number of cast "Start Pict"
set nm = the name of cast (sta+1)
set cnStart = the number of cast nm
set ena = the number of cast "end Pict"
set nm = the name of cast (ena-1)
set cnEnd = the number of cast nm
put cnStart && cnEnd
repeat with i = cnStart to cnEnd
put i & char 1 to 60 of the scripttext of cast i
if the scriptText of cast i = empty then
put "cast " & i
set the scriptText of cast i = "on mouseDown" & RETURN & " doRectClick([])" & RETURN & "end"
end if
end repeat
asdf
end setEmptyScripts
on collectAllTerms startNum
global gFile
if not voidP(gFile) then gFile(mDispose)
set gFile = fileIO(mNew, "write", the moviePath & "bold terms full list")
if voidP(startNum) then set startNum = 1
set BigList = value(field "o movies")
repeat with i = startNum to count(BigList)
saveMovie
if the freeBytes < 1500000 then
unloadCast 1,1000
if the machineType <> 256 then maxmem()
end if
set mov = getAt(BigList, i)
--put ">>> movie #" & i & ": " & mov
go to movie mov
collectTerms
end repeat
saveMovie
gFile(mDispose)
put "done."
end collectAllTerms
on collectTerms
global gFile
set sta = the number of cast "Start Pict"
set nm = the name of cast (sta+1)
set cnStart = the number of cast nm
set ena = the number of cast "End Pict"
set nm = the name of cast (ena-1)
set cnEnd = the number of cast nm
put cnStart && cnEnd
repeat with i = cnStart to cnEnd
put line 2 of the scriptText of cast i into s
if char 3 of s = "d" then next repeat
--put char 1 to 40 of s
set theList = 0
do s
--put ">>>full list" & theList
set c = count(theList)
repeat with j = 1 to c
set listItem = getAt(theList, j)
--put ">>> item " & j && listItem
if getat(listItem, 1) = "B" then
gFile(mWriteString, getAt(listItem, 3) & ">" & getAt(listItem, 2) & "," & the movie && i & RETURN)
--put getAt(listItem, 3) & ">" & getAt(listItem, 2) & RETURN
end if
end repeat
end repeat
end collectTerms
on dumpCONames
set theList = value(field "o.dir")
set c = count(theList)
repeat with i = 1 to c
put getAt(getAt(theList, i), 1) & "," & getPropAt(theList, i)
end repeat
end dumpCONames
on dumpPONames
set theList = value(field "poetry.dir")
set c = count(theList)
repeat with i = 1 to c
-- put getAt(getAt(theList, i), 1) & "," & getPropAt(theList, i)
put getAt(getAt(theList, i), 1)-- & "," & getPropAt(theList, i)
end repeat
end dumpPONames